#include <iostream>
#include <string>
using namespace  std;


int conuntChar1(const string & s)
{
	int len = s.size();
	int re = 0;
	for(int i = 0 ; i < len ; i ++){
		if(s[i] >= 'a' && s[i] <= 'z')
			re ++;
	}
	return re;

}
int conuntChar2( string & s)
{
	int len = s.size();
	int re = 0;
	for(int i = 0 ; i < len ; i ++){
		if(s[i] >= 'a' && s[i] <= 'z')
			re ++;
	}
	s[0] = 'A';
	return re;

}
int main()
{
	char buffer[20] = "acdsdfQA";
	string bufstr(buffer);
	cout << conuntChar2(bufstr)  << bufstr << endl;
	//cout << conuntChar2(buffer)  << " " << buffer << endl;
	return 0;
}